package com.wnnight.wys.entity.repairs;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author rzh6230
 * 2022/8/27 16:57
 */
@Getter
@Setter
@ToString
@TableName(value = "repairs_record", keepGlobalPrefix = true)
@ExcelIgnoreUnannotated
public class RepairsRecord {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ExcelProperty(value = "工单编号", index = 0)
    private String repNum;
    @NotEmpty
    @ExcelProperty(value = "工单类别", index = 1)
    private String repType;
    @NotEmpty
    @ExcelProperty(value = "报修位置", index = 3)
    private String repPlace;
    @TableField(exist = false)
    private int[] repPlaceIds;
    @NotNull
    @Size(max = 100,message = "报修描述不能超过100字")
    private String repDesc;
    @ExcelProperty(value = "报修人", index = 4)
    private String person;
    @ExcelProperty(value = "报修人联系方式", index = 5)
    private String pePhone;
    @ExcelProperty(value = "派单人", index = 6)
    private String sendPerson;
    @ExcelProperty(value = "派单人联系方式", index = 7)
    private String spPhone;
    @ExcelProperty(value = "维修人", index = 8)
    private String maintenance;
    @ExcelProperty(value = "维修人联系方式", index = 9)
    private String mtPhone;
    @ExcelProperty(value = "报修时间", index = 10)
    private String repTime;
    @ExcelProperty(value = "结束时间", index = 11)
    private String repOkTime;
    @ExcelProperty(value = "工单状态", index = 2)
    private String repStatus;
    private String repAppraise;
    private Integer repScore;
    private Integer personId;
    private String personType;
}
